package com.ssd.controller.inner;

import com.ssd.api.couponAndIntegral.PointsRecordTotalApi;
import com.ssd.service.IPointsRecordTotalService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 内部接口-用户积分总表
 */
@RequestMapping("/inner/points-record-total")
@RestController
public class PointsRecordTotalApiController implements PointsRecordTotalApi {
    @Resource
    private IPointsRecordTotalService pointsRecordTotalService;

    /**
     * 创建用户积分总表
     * @param userId 用户id
     */
    @Override
    @GetMapping("/{userId}")
    public void createUserPointsRecordTotal(@PathVariable("userId")Long userId) {
        pointsRecordTotalService.saveUserPointsRecordTotal(userId);
    }
}
